/*
 * @Descripttion:
 * @version:
 * @Author: caiailing
 * @Date: 2023-03-29 14:42:43
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-04-06 13:22:08
 */
export const useTitle = () => {
  let oldValue = 'Hello'
  let newValue = 'Word'
  const title = ref(oldValue)
  function changeTitle() {
    oldValue = title.value
    title.value = newValue
    newValue = oldValue
  }
  return {
    title,
    changeTitle
  }
}
